<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%String member = (String)session.getAttribute("member");%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="/bigjo/js/jquery.js"></script>
</head>

<script type="text/javascript">
jQuery(document).ready(function() {
	jQuery.noConflict();
	jQuery("#logout").click(function(){
		var idx = document.URL.indexOf("bigjo");
		var str = document.URL.substring(0, idx+5);
		document.location.href = str +"/memberLogout.mb";
	});

	jQuery.noConflict();
	jQuery("#mypage").click(function(){
		var idx = document.URL.indexOf("bigjo");
		var str = document.URL.substring(0, idx+5);
		var id = jQuery("#m_id").val();
		document.location.href = str + "/mypageForm.mb";
	});
});
</script>
<body>
		<h1>${member}님 환영합니다.</h1>
		<input type="hidden" id="m_id" value="${member}">
		<input type="button" id="mypage" name="mypage" value="마이페이지">
		<input type="button" id="logout" name="logout" value="로그아웃">
</body>
</html>